package com.akkainaction.router.group;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.router.group.actor.MasterActor;
import com.typesafe.config.ConfigFactory;

public class TestRouterGroup {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("router.conf"));
        ActorRef masterActor = system.actorOf(Props.create(MasterActor.class), "masterActor");
        masterActor.tell("hello A", ActorRef.noSender());
        masterActor.tell("hello B", ActorRef.noSender());
        masterActor.tell("hello C", ActorRef.noSender());
    }
}
